import ReactDOM from "react-dom/client";

import App from "./App";

import store from "./redux";

const root = ReactDOM.createRoot(document.getElementById("root"));
root.render(<App />);

// 监听redux数据的变化，一旦发生变化，就会触发回调函数
store.subscribe(() => {
  root.render(<App />);
});
